package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mallcloud.mall.common.core.constant.enums.mall.FloorEnum;
import com.mallcloud.mall.common.core.util.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "MallFloorModel", description = "楼层")
@Data
@TableName("MALLFLOOR")
public class MallFloorModel implements Serializable {
    private static final long serialVersionUID = 1L;

	/**
	 * 关联V_MANAFRAME_FLOOR的MFCODE
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "id为空", groups = {ValidGroup.Update.class})
	@ApiModelProperty(value="楼层id")
    @TableId(value = "floorid", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value="经营范围")
	@TableField("floorrange")
    private String floorRange;

    @ApiModelProperty(value="楼层简介")
	@TableField("floorintroduction")
    private String floorIntroduction;

    @ApiModelProperty(value="楼层图Url")
	@TableField("floorimage")
    private String floorImage;

    @ApiModelProperty(value="楼层LOGO")
	@TableField("floorlogo")
    private String floorLogo;

	/**
	 * {@link FloorEnum.FloorStatusEnum}
	 */
	@ApiModelProperty(value="启用状态（Y启用  N停用）")
	@TableField("floorstatus")
    private String floorStatus;

    @ApiModelProperty(value="排序")
	@TableField("floororder")
    private Integer floorOrder;

}
